<!DOCTYPE html>
<!-- saved from url=(0029)http://hackerzhou.me/ex_love/ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Love To Wife</title>

  <style type="text/css">

  </style>
  <link href="/stylesheets/default.css" type="text/css" rel="stylesheet">
  <script type="text/javascript" src="/javascripts/jquery.js"></script>
  <script type="text/javascript" src="/javascripts/garden_dev.js"></script>
  <script type="text/javascript" src="/javascripts/functions_dev.js"></script>
</head>

<body>
<div id="mainDiv">
  <div id="content" style="width: 1110px; height: 625px; margin-top: 182px; margin-left: 405px;">
    <div id="code" style="margin-top: 112.5px;">
     <!--
      <span class="comments">/**</span><br>
				<span class="space"><span class="comments">* We are both Fudan SSers and programmers,</span><br>
				<span class="space"><span class="comments">* so I write some code to celebrate our 1st anniversary.</span><br>
				<span class="space"><span class="comments">*/</span><br>
				Boy i = <span class="keyword">new</span> Boy(<span class="string">"rongqingsong"</span>);<br>
				Girl u = <span class="keyword">new</span> Girl(<span class="string">"chaishuo"</span>);<br>

				i.love(u);<br>
				<span class="comments">// Luckily, you accepted and became my girlfriend eversince.</span><br>
				u.accepted();<br>
				<span class="comments">// Since then, I miss u every day.</span><br>
				i.miss(u);<br>
				<span class="comments">// And take care of u and our love.</span><br>
				i.takeCareOf(u);<br>
				<span class="comments">// You say that you won't be so easy to marry me.</span><br>
				<span class="comments">// So I keep waiting and I have confidence that you will.</span><br>
				<span class="keyword">boolean</span> isHesitate = <span class="keyword">true</span>;<br></span></span></span>
				--></div>
    <div id="loveHeart">
      <canvas id="garden" width="670" height="625"></canvas>
      <div id="words" style="position: absolute; top: 377px; left: 915px;">
        <div id="messages" style="display: block;">
          baby, 我们相识已经有：
          <div id="elapseClock"></div>
        </div>
        <div id="loveu" style="display: block;">
          永远爱你！<br>
          <div class="signature">- 戎青松</div>
        </div>
      </div>
    </div>
  </div>
  <!--
  <div id="copyright">
    Inspired by <a href="http://www.openrise.com/lab/FlowerPower/">FlowerPower</a> project.<br>
    Copyright © 2014 <a href="http://hackerzhou.me/">hackerzhou.me</a> 2009-2014
  </div>
  -->
</div>
<script type="text/javascript">
  var offsetX = $("#loveHeart").width() / 2;
  var offsetY = $("#loveHeart").height() / 2 - 55;
  var displayMode = 1;
  var together = new Date();
  together.setFullYear(2011, 9, 1);
  together.setHours(0);
  together.setMinutes(0);
  together.setSeconds(0);
  together.setMilliseconds(0);

  $("#loveHeart").click(function(){
    displayMode *= -1;
    timeElapse(together, displayMode);
  });

  if (!document.createElement('canvas').getContext) {
    var msg = document.createElement("div");
    msg.id = "errorMsg";
    msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+";
    document.body.appendChild(msg);
    $("#code").css("display", "none")
    $("#copyright").css("position", "absolute");
    $("#copyright").css("bottom", "10px");
    document.execCommand("stop");
  } else {
    setTimeout(function () {
      adjustWordsPosition();
      startHeartAnimation();
    }, 100);

    timeElapse(together, displayMode);
    setInterval(function () {
      timeElapse(together, displayMode);
    }, 500);

    adjustCodePosition();
    $("#code").typewriter();
  }
</script>


</body></html>